package com.kelvin.oocl.crm.vo;

import java.util.Comparator;

import com.kelvin.oocl.crm.entity.Customer;

public class CustomerSortById implements Comparator<Customer> {

	@Override
	public int compare(Customer o1, Customer o2) {
		if(o1.getId()==o2.getId()){
			return 0;
		}else if(o1.getId()>o2.getId()){
			return 1;
		}else {
			return -1;
		}
	}

}
